﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Text;
using System.Web.UI;

namespace MiniBug.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/
        private Entity.MSSQLEntity dbcontext = new Entity.MSSQLEntity();

        [OutputCache(Duration = 10, VaryByParam = "none", Location=OutputCacheLocation.Client,NoStore=true)]
        public ActionResult Index()
        {
            return View(dbcontext.Bug.ToList());
        }

        //[HttpGet]
        //public ContentResult Index()
        //{
        //    string ret = "<h1>Teste </h1>";

        //    return this.Content(ret);

        //}

        public ActionResult About()
        {
            return View();
        }

        //public ActionResult Index()
        //{
        //    ViewData["Message"] = "Welcome to ASP.NET MVC!";

        //    return View();
        //}
       

    }
}
